package com.itheima.movie.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.movie.Mapper.MovieMapper;
import com.itheima.movie.domain.Movie;
import com.itheima.movie.service.MovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author fanYuLe
 * @Date 2023/3/25 14:50
 * @Blog blog.fanYuLe.net/996.mba
 * @Description:
 */
@Service
public class MovieServiceImpl implements MovieService {
    @Autowired
    private MovieMapper movieMapper;
    //1.查询电影列表和电影详情
    @Override
    public List<Movie> list() {
        //select * from movie
        LambdaQueryWrapper<Movie> qw = new LambdaQueryWrapper<>();
        List<Movie> list = movieMapper.selectList(qw);
        return list;
    }
}

